﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace BroRPG.Helpers
{
    public static class ColorHelper
    {
        public static Color Interpolate(Color a, Color b, float amount)
        {
            Color res = Color.Lerp(a, b, MathHelper.Clamp(amount * 1.5f, 0, 1));
            res.A = (byte)MathHelper.Lerp(0, 255, 1 - amount);
            return res;
        }

        
    }
}
